package com.atguigu.eduservice.client;

import com.atguigu.commonutils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@Component
@FeignClient(name="service-vod",fallback = VodFileDegradeFeignClient.class)
public interface VodClient {
    //根据视频id删除
    @DeleteMapping("/eduvod/video/deleteVideo/{id}")
    public R deleteVideoById(@PathVariable("id") String id);

    //删除多个视频
    @DeleteMapping("/eduvod/video/deleteMoreVideo")
    public R deleteBatch(@RequestParam("videoList") List<String> videoList);
}
